home *** CD-ROM | disk | FTP | other *** search
- -- card: 2908 from stack: in
- -- bmap block id: 0
- -- flags: 0000
- -- background id: 2697
- -- name:
- ----- HyperTalk script -----
- type tab
- type Tab
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=17 top=295 right=317 bottom=117
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Clear Answers
- ----- HyperTalk script -----
- on mouseUp
- put number of cards into counter
- put 1 into x
- repeat while x < counter + 1
- put " " into field 3
- put x + 1 into x
- go to next card
- end repeat
- end mouseUp
-
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=256 top=298 right=321 bottom=281
- -- title width / last selected line: 0
- -- icon id / first selected line: 1013 / 1013
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- put word 1 of field 3 into newString
- put 1 into numStudentWords
- put 2 into X
- put " " into nextWord
- repeat while nextWord <> ""
- put word X of field 3 into nextWord
- if nextWord is empty then exit repeat
- put newString && word X of field 3 into newString
- put numStudentWords + 1 into numStudentWords
- put X + 1 into X
- end repeat
- put newString into Student
-
- put word 1 of field 2 into newString
- put 1 into numCorrectWords
- put 2 into X
- put " " into nextWord
- repeat while nextWord <> ""
- put word X of field 2 into nextWord
- if nextWord is empty then exit repeat
- put newString && word X of field 2 into newString
- put numCorrectWords + 1 into numCorrectWords
- put X + 1 into X
- end repeat
- put newString into Correct
-
- if correct = student
- then answer "That is correct" with "OK"
- else answer "That is wrong" with "Try Again" or "OK"
- if It = "Try Again"
- then exit mouseUp
- visual effect scroll left
- hide field 2
- go to next card
- tabKey
- end mouseUp
-
-
-
-
- -- part contents for background part 16
- ----- text -----
- Put the question word here
-
-
- -- part contents for background part 17
- ----- text -----
- put the answer here. This card is hidden and
- only shows when the Answer button is clicked.